-- GENERATED SPELL FOR [Ebon Blade Veteran] --


function spell0_31314(pUnit, Event) --@Icebound Fortitude,Self--
pUnit:FullCastSpellOnTarget(58130,pUnit)
pUnit:RegisterEvent('Sorts_31314', 12278, 1)
end

function spell1_31314(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31314', 12000, 1)
end

function Sorts_31314(pUnit, Event)
local choix_sorts_31314 = math.random(0, 1)
if choix_sorts_31314 == 0 then
pUnit:RegisterEvent('spell0_31314', 1, 1)
end
if choix_sorts_31314 == 1 then
pUnit:RegisterEvent('spell1_31314', 1, 1)
end
end

function mob31314_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31314', math.random(1500, 3000), 1)
end

function mob31314_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31314_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31314_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31314, 1, 'mob31314_Action')
RegisterUnitEvent(31314, 2, 'mob31314_Leave')
RegisterUnitEvent(31314, 3, 'mob31314_Kill')
RegisterUnitEvent(31314, 4, 'mob31314_Die')
